package day02homework;

public class homework4 {
    public static void main(String[] args) {
        int studentnumber = 100;
        System.out.println(studentnumber);
        double price = 55.55;
        System.out.println(price);
        long year = 4600000000L;
        System.out.println(year);
        boolean b = false;
        System.out.println(b);
        /*
     算术运算符
     ++:自增运算符
	 前置自增运算符:先自增后使用
	 后置自增运算符:先使用后自增
	--:自减运算符
        */
// ++ 自增运算符
        int a = 3;
        int c = ++a; //先执行 ++a 相当于 a = a+1 => a=4
        // 再执行 b=a => b=4
        // int b = (a = a + 1);
        System.out.println("b=" + b);//b=4
        System.out.println("a=" + a);//a=4

        int m = 10;
        int n = m++;//先把m的值赋值给n => n= 10
        //接着m再进行自增,m=m+1 => m=11
        //int n = m;
        //m=m+1;
        System.out.println("m=" + m);//m=11
        System.out.println("n=" + n);//n=10

    }
}
